import { lazy } from 'react';
import { Navigate } from 'react-router-dom';
import PartyLayout from '../../ycf/party-Layout';
import PartyHome from '../../ycf/partyHome';
import SwitchCities from '../../ycf/switchCities';
import CitySearch from '../../ycf/citySearch';
import Order from '../../ycf/order';
import Activity from '../../ycf/activity';
import ShopDetail from '../../ycf/shopDetail';
import CouponDetail from '../../ycf/couponDetail'
import Payment from '../../ycf/payment';
import Really from '../../ycf/really'
import PaymentResult from '../../ycf/paymentResult'
export default [
    {
        path: '/party-layout',
        element: <PartyLayout />,
        children: [
            {
                path: 'partyHome',  // 注意是相对路径  
                element: <PartyHome />,
                meta: { title: '吃喝玩乐' }
            },

        ]
    },
    {
        path: '/switchCities',
        element: <SwitchCities />,
        meta: { title: '切换城市' }
    },
    {
        path: '/citySearch',
        element: <CitySearch />,
        meta: { title: "搜索城市" }
    },
    {
        path:'/order',
        element:<Order/>,
        meta:{title:"订单"}
    },
    {
        path:'/activity',
        element:<Activity/>,
        meta:{title:"活动专区"}
    },
    {
        path:'/shopDetail',
        element:<ShopDetail/>,
        meta:{title:"商家详情"}
    },
    {
        path:'/couponDetail',
        element:<CouponDetail/>,
        meta:{title:'代金卷详情'}
    },
    {
        path:'/payment',
        element:<Payment/>,
        meta:{title:'支付订单'}
    },
    {
        path:'/really',
        element:<Really/>,
        meta:{title:"选择支付"}
    },
    {
        path:'/paymentResult',
        element:<PaymentResult/>,
        meta:{title:"结果"}
    }
];